package DBClasses;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.jdo.annotations.Unique;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType = IdentityType.UNSPECIFIED)
public class GameType {

	@PrimaryKey	
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	public Long getId() {
        return id;
    }
	
	@Unique
	@Persistent
	private String name;
	public String getName() {
        return name;
    }
	
	public GameType(String name) {
        this.name = name;
    }
}
